package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.manger.pojo.Friend;
import com.zhentao.model.common.manger.pojo.Likes;
import com.zhentao.model.common.manger.vo.UserLikesVo;
import com.zhentao.service.LikesService;
import com.zhentao.mapper.LikesMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author lenovo
* @description 针对表【likes】的数据库操作Service实现
* @createDate 2024-10-06 23:04:34
*/
@Service
public class LikesServiceImpl extends ServiceImpl<LikesMapper, Likes>
    implements LikesService{
    @Resource
    private LikesMapper likesMapper;

    @Override
    public ResponseResult findById(Integer friendId) {
        List<UserLikesVo> likes = likesMapper.findById(friendId);
        return ResponseResult.okResult(likes);
    }
}




